import java.io.FileOutputStream;

import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;

public class AppServlet {

	public static void main (String[] args) throws Exception {
		System.out.println("AppServlet Create HTML");
		
		TransformerFactory tFactory = TransformerFactory.newInstance();
	    Transformer t = tFactory.newTransformer(new StreamSource("data.xsl"));
	    t.transform(new StreamSource("data.xml"), new StreamResult(new FileOutputStream("data.html")));
	}
}
